<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aether.Physics2D: DistanceProxy Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NugetLogo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aether.Physics2D
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">DistanceProxy Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A distance proxy is used by the GJK algorithm. It encapsulates any shape.  
 <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for DistanceProxy:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy__coll__graph.svg" width="139" height="214"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aaa7b42a87967c983fce519d189356e17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#aaa7b42a87967c983fce519d189356e17">DistanceProxy</a> (<a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_shapes_1_1_shape.html">Shape</a> shape, int index)</td></tr>
<tr class="memdesc:aaa7b42a87967c983fce519d189356e17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#aaa7b42a87967c983fce519d189356e17">More...</a><br /></td></tr>
<tr class="separator:aaa7b42a87967c983fce519d189356e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf8f0e367cb773cf18cd63e66eeb80a7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#abf8f0e367cb773cf18cd63e66eeb80a7">GetSupport</a> (<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> direction)</td></tr>
<tr class="memdesc:abf8f0e367cb773cf18cd63e66eeb80a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the supporting vertex index in the given direction.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#abf8f0e367cb773cf18cd63e66eeb80a7">More...</a><br /></td></tr>
<tr class="separator:abf8f0e367cb773cf18cd63e66eeb80a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a867fe6dec84c9eec88e7e9d00fa8e0ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#a867fe6dec84c9eec88e7e9d00fa8e0ff">GetSupportVertex</a> (<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> direction)</td></tr>
<tr class="memdesc:a867fe6dec84c9eec88e7e9d00fa8e0ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the supporting vertex in the given direction.  <a href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html#a867fe6dec84c9eec88e7e9d00fa8e0ff">More...</a><br /></td></tr>
<tr class="separator:a867fe6dec84c9eec88e7e9d00fa8e0ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A distance proxy is used by the GJK algorithm. It encapsulates any shape. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aaa7b42a87967c983fce519d189356e17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa7b42a87967c983fce519d189356e17">&#9670;&nbsp;</a></span>DistanceProxy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html">DistanceProxy</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_shapes_1_1_shape.html">Shape</a>&#160;</td>
          <td class="paramname"><em>shape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">shape</td><td>The shape.</td></tr>
    <tr><td class="paramname">index</td><td>The index.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="abf8f0e367cb773cf18cd63e66eeb80a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf8f0e367cb773cf18cd63e66eeb80a7">&#9670;&nbsp;</a></span>GetSupport()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int GetSupport </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>direction</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the supporting vertex index in the given direction. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">direction</td><td>The direction.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a id="a867fe6dec84c9eec88e7e9d00fa8e0ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a867fe6dec84c9eec88e7e9d00fa8e0ff">&#9670;&nbsp;</a></span>GetSupportVertex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> GetSupportVertex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>direction</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the supporting vertex in the given direction. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">direction</td><td>The direction.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>Physics2D/Collision/Distance.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacenkast.html">nkast</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether.html">Aether</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d.html">Physics2D</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d_1_1_collision.html">Collision</a></li><li class="navelem"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_collision_1_1_distance_proxy.html">DistanceProxy</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
